﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TEngine;
using UnityEngine;

namespace GameLogic
{
    internal class BulletView:MonoBehaviour
    {
        WeaponData m_WeaponData;
        SpriteRenderer m_SpriteRenderer;

        public SpriteRenderer SpriteRenderer { get => m_SpriteRenderer; }

        public void Init(WeaponData weaponData)
        {
            m_SpriteRenderer = gameObject.GetComponentInChildren<SpriteRenderer>();
            m_SpriteRenderer.sprite = GameModule.Resource.LoadAsset<Sprite>( weaponData.Cfg.BulletSpritePath);
        }


    }
}
